  public function executeCartRedirectAction(sfWebRequest $request)
  {
    $failed_items = array();
    $condition    = $request->getParameter('batch_c');
    $module_name  = $request->getParameter('module_name', $this->getModuleName());
    $items        = $this->configuration->getCartItemsAsObjects($condition, $module_name, $failed_items);
    $redirect     = $request->getParameter('redirect');
    $go_back_to   = $module_name.'/cartIndex';

    if (count($items) == 0 && count($failed_items) > 0)
    {
      $this->getUser()->setFlash('error', 'Selected items cannot be processed.');
      $this->redirect($go_back_to);
    }
    elseif (count($items) == 0)
    {
      $this->getUser()->setFlash('error', 'No eligible items in cart.');
      $this->redirect($go_back_to);
    }
    elseif (count($failed_items) > 0)
    {
      $this->getUser()->setFlash('warning', 'Some items failed the validation and will not be processed.');
      $this->getUser()->setFlash('warning_detail', $failed_items);
    }

    $this->redirect($redirect.'?namespace='.$module_name.'&batch_c='.$condition);
  }
